package com.jx.driving.transmission;

import java.io.Serializable;
import java.util.Arrays;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.DynamicByteArrayAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 请求身份认证应答消息
 * @author shenliuyang
 *
 * 2016年9月19日上午10:01:21
 */
@TerminalAnnotation
public class Terminal0x8401Transmission extends TimeTerminalTransmissionMessage implements Serializable {
	private static final long serialVersionUID = -4751297678185112402L;
	@WordAnnotation(order = 1)
	private int packageSequence;//驾培序号包
	@ByteAnnotation(order = 2)
	private short result;//查询结果
	@DynamicByteArrayAnnotation(order = 4, value = 4)
	private byte[] content;//认证内容

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8401Transmission [packageSequence=").append(packageSequence).append(", result=")
				.append(result).append(", content=").append(Arrays.toString(content)).append("]");
		return builder.toString();
	}

	public int getPackageSequence() {
		return packageSequence;
	}

	public void setPackageSequence(int packageSequence) {
		this.packageSequence = packageSequence;
	}

	public short getResult() {
		return result;
	}

	public void setResult(short result) {
		this.result = result;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

}
